home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc International / Development / TSMTEsample⁄1.1 / _SOM_ / som_SamplePart.idl < prev    next >
Encoding:
Text File  |  1996-11-14  |  3.3 KB  |  155 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SamplePart.idl
  3.  
  4.     Contains:    SamplePart object interface
  5.  
  6.     Written by:    Steve Smith
  7.  
  8.     Copyright:    © 1994-95 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     -------------------------------------------------------------------
  11.  
  12.     Notes:        If you need to add a new method to SamplePart you should
  13.                 make that change in the C++ implementation. Adding new
  14.                 methods to the SOM interface should only be necessary if
  15.                 the method must be publically exported from the library.
  16.                 In that case, you will have to run the SOM compiler/
  17.                 emitter.
  18. */
  19.  
  20.  
  21. #ifndef _SAMPLEPART_
  22. #define _SAMPLEPART_
  23.  
  24. #ifndef _PART_
  25. #include "Part.idl"
  26. #endif 
  27.  
  28. #ifndef _SAMPLEPARTVERS_
  29. #include "SamplePartVers.h"
  30. #endif
  31.  
  32. //==============================================================================
  33. // Classes used by this interface
  34. //==============================================================================
  35.  
  36. #ifdef __PRIVATE__
  37. //==============================================================================
  38. // Implementation Types
  39. //==============================================================================
  40.  
  41. typedef somToken SamplePart;
  42. #endif 
  43.  
  44. //==============================================================================
  45. // som_SamplePart
  46. //==============================================================================
  47.  
  48. module SampleCode
  49. {
  50.     interface som_SamplePart : ODPart
  51.     {
  52. #ifdef __SOMIDL__
  53.         implementation
  54.         {
  55.             majorversion = somClassMajorVersion;
  56.             minorversion = somClassMinorVersion;
  57.             
  58.             functionprefix = som_SamplePart__;
  59.             override:
  60.                 //# ODObject methods
  61.                 somInit,
  62.                 somUninit,
  63.                 AcquireExtension,
  64.                 HasExtension,
  65.                 Purge,
  66.                 ReleaseExtension,
  67.                 
  68.                 //# ODRefCountedObject methods
  69.                 Release,
  70.                 
  71.                 //# ODPersistentObject methods.
  72.                 CloneInto,
  73.                 Externalize,
  74.                 ReleaseAll,
  75.                 
  76.                 //# ODPart methods
  77.                 AbortRelinquishFocus,
  78.                 AcquireContainingPartProperties,
  79.                 AdjustBorderShape,
  80.                 AdjustMenus,
  81.                 AttachSourceFrame,
  82.                 BeginRelinquishFocus,
  83.                 CanvasChanged,
  84.                 CanvasUpdated,
  85.                 ChangeKind,
  86.                 ClonePartInfo,
  87.                 CommitRelinquishFocus,
  88.                 ContainingPartPropertiesUpdated,
  89.                 CreateLink,
  90.                 DisplayFrameAdded,
  91.                 DisplayFrameClosed,
  92.                 DisplayFrameConnected,
  93.                 DisplayFrameRemoved,
  94.                 DisposeActionState,
  95.                 DragEnter,
  96.                 DragLeave,
  97.                 DragWithin,
  98.                 Draw,
  99.                 Drop,
  100.                 DropCompleted,
  101.                 EditInLinkAttempted,
  102.                 EmbeddedFrameUpdated,
  103.                 EmbeddedFrameSpec,
  104.                 ExternalizeKinds,
  105.                 FacetAdded,
  106.                 FacetRemoved,
  107.                 FocusAcquired,
  108.                 FocusLost,
  109.                 FrameShapeChanged,
  110.                 FulfillPromise,
  111.                 GeometryChanged,
  112.                 GetPrintResolution,
  113.                 HandleEvent,
  114.                 HighlightChanged,
  115.                 InitPart,
  116.                 InitPartFromStorage,
  117.                 LinkStatusChanged,
  118.                 LinkUpdated,
  119.                 Open,
  120.                 PresentationChanged,
  121. #ifndef _PLATFORM_MACINTOSH_
  122.                 ReadActionState,    //# Mac doesn't support persistent undo
  123. #endif
  124.                 ReadPartInfo,
  125.                 RedoAction,
  126.                 RemoveEmbeddedFrame,
  127.                 RequestEmbeddedFrame,
  128.                 RequestFrameShape,
  129.                 RevealFrame,
  130.                 RevealLink,
  131.                 SequenceChanged,
  132.                 UndoAction,
  133.                 UsedShapeChanged,
  134.                 ViewTypeChanged,
  135. #ifndef _PLATFORM_MACINTOSH_
  136.                 WriteActionState,    //# Mac doesn't support persistent undo
  137. #endif
  138.                 WritePartInfo;
  139.         
  140. #ifdef __PRIVATE__
  141.             passthru C_xih =
  142.                 "class SamplePart;";
  143.         
  144.             SamplePart*        fPart;
  145.         
  146. #endif //__PRIVATE__
  147.         };
  148.         
  149. #endif //__SOMIDL__
  150.     };
  151. };
  152.  
  153. #endif //__SAMPLEPART__
  154.  
  155.